.class final Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;
.super Lcom/burstly/lib/component/AbstractAdaptor;
.source "MillennialAdaptor.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;
    }
.end annotation


# static fields
.field static final FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo; = null

.field static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field private static final NETWORK_NAME:Ljava/lang/String; = "millennial"


# instance fields
.field private final mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

.field mInterstitialCachedView:Lcom/millennialmedia/android/MMInterstitial;

.field mIsPrecacheRequest:Z

.field private mListener:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;

.field private mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

.field private mView:Lcom/millennialmedia/android/MMAdView;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 57
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 62
    new-instance v0, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    const-string v1, "millennial"

    const/4 v2, 0x1

    invoke-direct {v0, v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;-><init>(Ljava/lang/String;Z)V

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    return-void
.end method

.method constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2
    .parameter "context"
    .parameter "viewId"

    .prologue
    .line 244
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/component/AbstractAdaptor;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 245
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " MillennialAdaptor"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mTag:Ljava/lang/String;

    .line 246
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mTag:Ljava/lang/String;

    invoke-direct {v0, v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    .line 247
    return-void
.end method

.method private configureRequest(Lcom/millennialmedia/android/MMRequest;)V
    .locals 2
    .parameter "request"

    .prologue
    .line 345
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1, p1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->configure(Lcom/millennialmedia/android/MMRequest;)V

    .line 346
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getGoalId()Ljava/lang/String;

    move-result-object v0

    .line 347
    .local v0, goalId:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 348
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, v0, p1}, Lcom/millennialmedia/android/MMSDK;->trackConversion(Landroid/content/Context;Ljava/lang/String;Lcom/millennialmedia/android/MMRequest;)V

    .line 350
    :cond_0
    return-void
.end method

.method private createBanner()Lcom/millennialmedia/android/MMAdView;
    .locals 2

    .prologue
    .line 263
    new-instance v0, Lcom/millennialmedia/android/MMAdView;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/millennialmedia/android/MMAdView;-><init>(Landroid/content/Context;)V

    .line 264
    .local v0, millennial:Lcom/millennialmedia/android/MMAdView;
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getAppId()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/millennialmedia/android/MMAdView;->setApid(Ljava/lang/String;)V

    .line 265
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->isIgnoreDensity()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/millennialmedia/android/MMAdView;->setIgnoresDensityScaling(Z)V

    .line 266
    invoke-static {}, Lcom/millennialmedia/android/MMSDK;->getDefaultAdId()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/millennialmedia/android/MMAdView;->setId(I)V

    .line 267
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getWidth()I

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getHeight()I

    move-result v1

    if-eqz v1, :cond_0

    .line 268
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getWidth()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/millennialmedia/android/MMAdView;->setWidth(I)V

    .line 269
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getHeight()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/millennialmedia/android/MMAdView;->setHeight(I)V

    .line 271
    :cond_0
    return-object v0
.end method

.method private createInterstitial()Lcom/millennialmedia/android/MMInterstitial;
    .locals 2

    .prologue
    .line 280
    new-instance v0, Lcom/millennialmedia/android/MMInterstitial;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/millennialmedia/android/MMInterstitial;-><init>(Landroid/content/Context;)V

    .line 281
    .local v0, millennial:Lcom/millennialmedia/android/MMInterstitial;
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getAppId()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/millennialmedia/android/MMInterstitial;->setApid(Ljava/lang/String;)V

    .line 282
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->isIgnoreDensity()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/millennialmedia/android/MMInterstitial;->setIgnoresDensityScaling(Z)V

    .line 283
    return-object v0
.end method

.method private requestInterstitial(Lcom/millennialmedia/android/MMInterstitial;)V
    .locals 1
    .parameter "view"

    .prologue
    .line 395
    new-instance v0, Lcom/millennialmedia/android/MMRequest;

    invoke-direct {v0}, Lcom/millennialmedia/android/MMRequest;-><init>()V

    .line 396
    .local v0, request:Lcom/millennialmedia/android/MMRequest;
    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->configureRequest(Lcom/millennialmedia/android/MMRequest;)V

    .line 397
    invoke-virtual {p1, v0}, Lcom/millennialmedia/android/MMInterstitial;->setMMRequest(Lcom/millennialmedia/android/MMRequest;)V

    .line 398
    invoke-virtual {p1}, Lcom/millennialmedia/android/MMInterstitial;->fetch()V

    .line 399
    return-void
.end method

.method private wrap(Landroid/view/View;)Landroid/view/View;
    .locals 8
    .parameter "view"

    .prologue
    const/4 v6, 0x1

    .line 359
    const/4 v3, 0x0

    .line 360
    .local v3, resolveParameters:Landroid/view/ViewGroup$LayoutParams;
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v4}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getWidth()I

    move-result v4

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v4}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getHeight()I

    move-result v4

    if-nez v4, :cond_1

    .line 361
    :cond_0
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getLayoutParamsResolver()Lcom/burstly/lib/component/LayoutParametersResolver;

    move-result-object v4

    invoke-virtual {v4}, Lcom/burstly/lib/component/LayoutParametersResolver;->resolveParameters()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    .line 362
    const/4 v4, -0x2

    iput v4, v3, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 370
    :goto_0
    invoke-virtual {p1, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 371
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/ClickAwareWrapper;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v5

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getViewId()Ljava/lang/String;

    move-result-object v6

    const-string v7, "millennial"

    invoke-direct {v0, v4, v5, v6, v7}, Lcom/burstly/lib/component/networkcomponent/ClickAwareWrapper;-><init>(Landroid/content/Context;Lcom/burstly/lib/component/IBurstlyAdaptorListener;Ljava/lang/String;Ljava/lang/String;)V

    .line 373
    .local v0, clickAwareWrapper:Landroid/view/ViewGroup;
    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 374
    return-object v0

    .line 364
    .end local v0           #clickAwareWrapper:Landroid/view/ViewGroup;
    :cond_1
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v4}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getWidth()I

    move-result v4

    int-to-float v4, v4

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v5

    invoke-static {v6, v4, v5}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v4

    float-to-int v2, v4

    .line 366
    .local v2, layoutWidth:I
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v4}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->getHeight()I

    move-result v4

    int-to-float v4, v4

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v5

    invoke-static {v6, v4, v5}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v4

    float-to-int v1, v4

    .line 368
    .local v1, layoutHeight:I
    new-instance v3, Landroid/view/ViewGroup$LayoutParams;

    .end local v3           #resolveParameters:Landroid/view/ViewGroup$LayoutParams;
    invoke-direct {v3, v2, v1}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .restart local v3       #resolveParameters:Landroid/view/ViewGroup$LayoutParams;
    goto :goto_0
.end method


# virtual methods
.method protected checkParameters(Ljava/util/Map;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .prologue
    .line 251
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v1, p1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->initConfigurator(Ljava/util/Map;)V

    .line 252
    invoke-static {}, Lcom/millennialmedia/android/MMBroadcastReceiver;->createIntentFilter()Landroid/content/IntentFilter;

    move-result-object v0

    .line 253
    .local v0, intentFilter:Landroid/content/IntentFilter;
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mTag:Ljava/lang/String;

    invoke-direct {v1, p0, v2}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;-><init>(Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;Ljava/lang/String;)V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mListener:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;

    .line 254
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getContext()Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mListener:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;

    invoke-virtual {v1, v2, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 255
    return-void
.end method

.method public destroy()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 417
    invoke-super {p0}, Lcom/burstly/lib/component/AbstractAdaptor;->destroy()V

    .line 418
    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mView:Lcom/millennialmedia/android/MMAdView;

    .line 419
    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mInterstitialCachedView:Lcom/millennialmedia/android/MMInterstitial;

    .line 420
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    if-eqz v0, :cond_0

    .line 421
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;->stopAquire()V

    .line 423
    :cond_0
    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    .line 424
    return-void
.end method

.method protected doGetNewAd()Landroid/view/View;
    .locals 6

    .prologue
    const/4 v2, 0x0

    .line 298
    const/4 v3, 0x0

    iput-boolean v3, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mIsPrecacheRequest:Z

    .line 299
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->isLocationAllowed()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 300
    new-instance v3, Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getContext()Landroid/content/Context;

    move-result-object v4

    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-direct {v3, v4, v5}, Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;-><init>(Landroid/content/Context;Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet$ILocationValetListener;)V

    iput-object v3, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    .line 301
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    const/4 v4, 0x1

    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;->startAquire(Ljava/lang/Boolean;)Ljava/lang/Boolean;

    .line 306
    :cond_0
    :goto_0
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->isInterstitial()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 307
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->createInterstitial()Lcom/millennialmedia/android/MMInterstitial;

    move-result-object v0

    .line 308
    .local v0, interstitial:Lcom/millennialmedia/android/MMInterstitial;
    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->requestInterstitial(Lcom/millennialmedia/android/MMInterstitial;)V

    .line 316
    .end local v0           #interstitial:Lcom/millennialmedia/android/MMInterstitial;
    :goto_1
    return-object v2

    .line 302
    :cond_1
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    if-eqz v3, :cond_0

    .line 303
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;->stopAquire()V

    .line 304
    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    goto :goto_0

    .line 311
    :cond_2
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->createBanner()Lcom/millennialmedia/android/MMAdView;

    move-result-object v2

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mView:Lcom/millennialmedia/android/MMAdView;

    .line 312
    new-instance v1, Lcom/millennialmedia/android/MMRequest;

    invoke-direct {v1}, Lcom/millennialmedia/android/MMRequest;-><init>()V

    .line 313
    .local v1, request:Lcom/millennialmedia/android/MMRequest;
    invoke-direct {p0, v1}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->configureRequest(Lcom/millennialmedia/android/MMRequest;)V

    .line 314
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mView:Lcom/millennialmedia/android/MMAdView;

    invoke-virtual {v2, v1}, Lcom/millennialmedia/android/MMAdView;->setMMRequest(Lcom/millennialmedia/android/MMRequest;)V

    .line 315
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mView:Lcom/millennialmedia/android/MMAdView;

    invoke-virtual {v2}, Lcom/millennialmedia/android/MMAdView;->getAd()V

    .line 316
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mView:Lcom/millennialmedia/android/MMAdView;

    invoke-direct {p0, v2}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->wrap(Landroid/view/View;)Landroid/view/View;

    move-result-object v2

    goto :goto_1
.end method

.method public getAdType()Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;
    .locals 1

    .prologue
    .line 288
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialConfigurator;->isInterstitial()Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->INTERSTITIAL_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->BANNER_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    goto :goto_0
.end method

.method public getNetworkName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 293
    const-string v0, "millennial"

    return-object v0
.end method

.method public pause()V
    .locals 1

    .prologue
    .line 321
    invoke-super {p0}, Lcom/burstly/lib/component/AbstractAdaptor;->pause()V

    .line 322
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    if-eqz v0, :cond_0

    .line 323
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;->stopAquire()V

    .line 325
    :cond_0
    return-void
.end method

.method public precacheAd()Landroid/view/View;
    .locals 1

    .prologue
    .line 379
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getNewAd()Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public precacheInterstitialAd()V
    .locals 1

    .prologue
    .line 384
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mIsPrecacheRequest:Z

    .line 385
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->createInterstitial()Lcom/millennialmedia/android/MMInterstitial;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mInterstitialCachedView:Lcom/millennialmedia/android/MMInterstitial;

    .line 386
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mInterstitialCachedView:Lcom/millennialmedia/android/MMInterstitial;

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->requestInterstitial(Lcom/millennialmedia/android/MMInterstitial;)V

    .line 387
    return-void
.end method

.method public resume()V
    .locals 2

    .prologue
    .line 329
    invoke-super {p0}, Lcom/burstly/lib/component/AbstractAdaptor;->resume()V

    .line 330
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    if-eqz v0, :cond_0

    .line 331
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mLocationValet:Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;

    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/millennial/LocationValet;->startAquire(Ljava/lang/Boolean;)Ljava/lang/Boolean;

    .line 333
    :cond_0
    return-void
.end method

.method public showPrecachedInterstitialAd()V
    .locals 2

    .prologue
    .line 403
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mInterstitialCachedView:Lcom/millennialmedia/android/MMInterstitial;

    if-eqz v0, :cond_0

    .line 404
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v0

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->shownFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 405
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mInterstitialCachedView:Lcom/millennialmedia/android/MMInterstitial;

    invoke-virtual {v0}, Lcom/millennialmedia/android/MMInterstitial;->display()Z

    .line 406
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mInterstitialCachedView:Lcom/millennialmedia/android/MMInterstitial;

    .line 408
    :cond_0
    return-void
.end method

.method public stop()V
    .locals 2

    .prologue
    .line 337
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mListener:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;

    if-eqz v0, :cond_0

    .line 338
    invoke-super {p0}, Lcom/burstly/lib/component/AbstractAdaptor;->stop()V

    .line 339
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mListener:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;

    invoke-virtual {v0, v1}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 340
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mListener:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;

    .line 342
    :cond_0
    return-void
.end method

.method public supports(Ljava/lang/String;)Z
    .locals 1
    .parameter "action"

    .prologue
    .line 412
    const/4 v0, 0x1

    return v0
.end method
